package task

import (
	"cm2/service/irisweb"
	"cm2/terminal/console/win/webserv/area/task/controllers"
)

// Area 返回 task 的路由注册
func Area() (string, []irisweb.HandlerOption) {
	hoReqTask := irisweb.HandlerOption{
		HandlerFunc: controllers.RequestTask,
		Path:        "/request-task",
		Method:      irisweb.MethodPost,
	}

	// ho2 := irisweb.HandlerOption{
	// 	HandlerFunc: DemoExp,
	// 	Path:        "/demo-exp",
	// 	Method:      irisweb.MethodGet,
	// }

	return "/api/task", []irisweb.HandlerOption{
		hoReqTask,
	}
}
